Homework 6:

 

Get a true false answer from the user. (confirm dialog) Give write an answer based on the response.

Add 2 variables together and if the result is greater than 18 respond that they can buy tobacco otherwise tell them they can not.